package com.example.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {


    @GetMapping("/logout")
    public void logout() {
        System.out.println("登出功能");
    }
    @GetMapping("/login")
    public void login(String name,String password){
        System.out.println("登陆功能");

    }

    @GetMapping("/password")
    public void password(@PathVariable String password){
        System.out.println("密码注册");
    }

    @GetMapping("/username")
    public void username(@PathVariable String name){
        System.out.println("用户名注册");

    }


}
